﻿using IdentityServer4.Models;
using IdentityServer4.Test;
using System;
using System.Collections.Generic;
using System.Text;

namespace ALMDDD.IdentityServer.Config
{
    /// <summary>
    /// TODO:使用OpenID Connect添加用户身份验证
    /// </summary>
    public class UserAuthenticationConfig
    {
        public static IEnumerable<IdentityResource> GetIdentityResources()
        {
            List<IdentityResource> lists = new List<IdentityResource>();


            return lists;


        }

        public static IEnumerable<Client> GetClients()
        {
            List<Client> clientList = new List<Client>() {
                new Client{
                    ClientId="client",
                    AllowedGrantTypes=GrantTypes.Implicit
                }
            };

            return clientList;
        }

        public static List<TestUser> GetUsers()
        {
            List<TestUser> testUsers = new List<TestUser>();

            return testUsers;
        }
    }
}
